export class Strategy {
  public silkBag: Record<string, Function>;

  constructor(initSilkBag?: Record<string, Function>) {
    this.silkBag = initSilkBag || {};
  }

  add(name: string, fn: Function) {
    this.silkBag[name] = fn;
  }

  remove(name: string) {
    delete this.silkBag[name];
  }
}
